#include "stdafx.h"

using namespace sprite;

extern image* img2;

void OnTimer(HWND hWnd){

	unsigned static alpha=0;

	alpha++;

	if(alpha>=9){

		alpha=0;
	
	}

	img2->SetFrameID(alpha);

	InvalidateRect(hWnd,NULL,true);

}